package cn.hl.sfzy.service;

import cn.hl.sfzy.entity.Article;
import com.github.pagehelper.PageInfo;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @ClassName ArticleService
 * @Description TOOO
 * @Author Lilysi
 * @Date 2024//10//21//11:38
 * @Version 1.0
 */

public interface ArticleService {
    List<Article> getArticles(Article article);
    int deleteArticle(Long id);
    int deleteType(Long id);
    int addArticle(Article article);
    int updateid(Long id,Long o);
    int updateArticle(Article article);
    PageInfo<Article> findByPage(int pageNum, int pageSize,Article article);
    PageInfo<Article> selectByConsultId(int pageNum, int pageSize, Long teacher_id);
    PageInfo<Article> selectAll(int pageNum, int pageSize);


}
